import QtQuick
import QtQuick.Controls

Window {
    width: 640
    height: 480
    visible: true
    title: qsTr("Hello World")

    BusyIndicator {
        anchors.centerIn: parent
        running: true  // 确保 BusyIndicator 是运行的
        width: 100
        height: 100

        contentItem: Rectangle {
            width: 100
            height: 100
            color: "transparent"
            border.color: "green"
            border.width: 10
            radius: width / 2

            // 添加一个缺口
            Rectangle {
                anchors {
                    top: parent.top
                    horizontalCenter: parent.horizontalCenter
                }
                width: 10
                height: 10
                color: "white"
            }

            RotationAnimation on rotation {
                from: 0
                to: 360
                duration: 1000
                loops: Animation.Infinite
            }
        }
    }
}
